CMake_minimum_required(VERSION 3.0) 

project(cloud_server)

include_directories(${PROJECT_BINARY_DIR}/../inc)
# add_library(bundle SHARED ${PROJECT_BINARY_DIR}/../src/bundle.cpp)
# # 设置库默认生成的文件夹
# set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/../lib)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)

aux_source_directory (${PROJECT_BINARY_DIR}/../src SRC)
find_library(FUNC_LIB bundle ${PROJECT_BINARY_DIR}/../lib)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/../bin)

add_executable(cloud ${SRC})

target_link_libraries(cloud libjsoncpp.so)
target_link_libraries (cloud ${FUNC_LIB})